package cn.iocoder.yudao.module.pm.controller.admin.thawrecords.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 过程管理-解冻专项台账新增/修改 Request VO")
@Data
public class ThawRecordsSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9603")
    private Long id;

    @Schema(description = "解冻台账编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "解冻台账编号不能为空")
    private String thawCode;

    @Schema(description = "食品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "食品名称不能为空")
    private String foodName;

    @Schema(description = "解冻开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "解冻开始时间不能为空")
    private LocalDateTime startTime;

    @Schema(description = "解冻结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "解冻结束时间不能为空")
    private LocalDateTime endTime;

    @Schema(description = "食品开始温度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "食品开始温度不能为空")
    private String initTemp;

    @Schema(description = "解冻条件要求", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "解冻条件要求不能为空")
    private String conditionDesc;

}